package com.zqxq.lottery.entity.enums;

/**
 * 说    明：   彩种类型
 * 创 建 人：	一刀·胡
 * 创建时间：	2018/4/12 16:32
 * 修 改 人：
 * 修改日期：
 **/
public enum LotteryIdEnum {
    DJ(10L,"电竞",""),
    SSQ(11L,"双色球","{1:'普通',2:'胆拖'}"),
    DLT(14L,"大乐透","{1:'普通',2:'胆拖'}"),
    FC(12L,"福彩3D","{1:'直选',2:'组三单式',3:'组三复式',4:'组六'}"),
    PL(16L,"排列三","{1:'直选',2:'组三单式',3:'组三复式',4:'组六'}"),
    QXC(15L,"七星彩","{1:'普通'}"),
    JCZQ(21L,"竞猜足球","{1:'胜平负',2:'让球胜平负',3:'比分',4:'总进球',5:'半全场',6:'混合投注',7:'单关固定',8:'猜一场',9:'2选1'"),
    JCLQ(24L,"竞猜篮球","{1:'胜负',2:'让分胜负',3:'胜分差',4:'大小分',5:'混合过关',6:'单关'"),
    JCZQ_JJ(210L,"竞猜足球-晋级赛","{0:'猜冠军'，1:'猜冠亚军'}");
    private Long id;
    private String name;
    private String playTypes;

    LotteryIdEnum(Long id, String name, String playTypes) {
        this.id = id;
        this.name = name;
        this.playTypes = playTypes;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPlayTypes() {
        return playTypes;
    }

    public void setPlayTypes(String playTypes) {
        this.playTypes = playTypes;
    }

    public static LotteryIdEnum getEnumById(Long id) {

        for (LotteryIdEnum bt : values()) {
            if (bt.id == id) {
                return bt;
            }
        }
        return null;
    }

}
